import request from '@/utils/request'

/**
 * 出库tongji 
 * @param {*} params 
 * @returns 
 */
export function outStorehouseCount(productId) {
  var url = productId == '0' ? '/outStorehouseCount' : '/outStorehouseCount/' + productId.toString()
  return request({
    url: url,
    method: 'get',
  })
}

/**
 * 调剂tongji 
 * @param {*} params 
 * @returns 
 */
export function transferStorehouseCount(productId) {
  var url = productId == '0' ? '/transferStorehouseCount' : '/transferStorehouseCount/' + productId

  return request({
    url: url,
    method: 'get',
  })
}


/**
 * 退货tongji 
 * @param {*} params 
 * @returns 
 */
export function refundStorehouseCount(productId) {
  var url = productId == '0' ? '/refundStorehouseCount' : '/refundStorehouseCount/' + productId

  return request({
    url: url,
    method: 'get',
  })
}

/**
 * 入库统计
 * @param {*} params 
 * @returns 
 */
export function inStorehouseCount(productId) {
  var url = productId == '0' ? '/inStorehouseCount' : '/inStorehouseCount/' + productId

  return request({
    url: url,
    method: 'get',
  })
}
